package com.sofwin.ruoyi.scyffinal.service.impl;

import com.sofwin.ruoyi.scyffinal.mapper.RMMMapper;
import com.sofwin.ruoyi.scyffinal.pojo.RiskManagementMeasures;
import com.sofwin.ruoyi.scyffinal.service.RMMService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
@Service
public class RMMServiceImpl implements RMMService {
    @Autowired
    private RMMMapper rmmMapper;

    @Override
    public List<RiskManagementMeasures> SelectRiskManagementMeasuresList(RiskManagementMeasures riskManagementMeasures) {
        return rmmMapper.selectRiskManagementMeasuresList(riskManagementMeasures);
    }

    @Override
    public int insertRiskManagementMeasures(RiskManagementMeasures riskManagementMeasures) {
        return rmmMapper.insertRiskManagementMeasures(riskManagementMeasures);
    }

    @Override
    public int deleteRiskManagementMeasuresByIds(Long[] ids) {
        return rmmMapper.deleteRiskManagementMeasuresByIds(ids);
    }

    @Override
    public int updateRiskManagementMeasures(RiskManagementMeasures riskManagementMeasures) {
        return rmmMapper.updateRiskManagementMeasures(riskManagementMeasures);
    }

    @Override
    public RiskManagementMeasures selectRiskManagementMeasuresById(Long id) {
        return rmmMapper.selectRiskManagementMeasuresById(id);
    }
}
